package club.creategeek.bootstrap;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * spring-boot 主启动程序
 *
 * @author terrfly
 * @site https://www.jeequan.com
 * @date 2022-03-14 08:50
 */
@SpringBootApplication
@EnableScheduling
@Configuration
@ComponentScan(basePackages = {"com.tongze.common.base","club.creategeek.ctrl","com.tongze.common.oss","com.tongze.common.mq"})   //由于MainApplication没有在项目根目录， 需要配置basePackages属性使得成功扫描所有Spring组件；
public class GeekSaasApplication {

    /** main启动函数 **/
    public static void main(String[] args) {

        //启动项目
        SpringApplication.run(GeekSaasApplication.class, args);

    }

}
